home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / tex / macros / contrib / semlcmss.sty < prev    next >
Encoding:
Text File  |  1995-03-15  |  4.5 KB  |  161 lines

  1. %% BEGIN semlcmss.sty
  2. \def\fileversion{1.0 (2e)}
  3. \def\filedate{94/02/01}
  4. %%
  5. %% LaTeX style option `semlcmss.sty' for the `seminar' document style.
  6. %% For use with LaTeX v2.09 and the New Font Selection Scheme (1 or 2)
  7. %% or (some day) with LaTeX2e.
  8. %%
  9. %% COPYRIGHT 1994, by Timothy Van Zandt, tvz@Princeton.EDU
  10. %% See seminar.sty or seminar.doc for copying restrictions.
  11. %%
  12. %% This file contains the external font information needed to load
  13. %% the SliTeX sans serif fonts for use by seminar.sty.
  14. %%
  15. \csname semlcmss@loaded\endcsname
  16. \let\semlcmss@loaded\endinput
  17. \typeout{Style Option: `semlcmss' \fileversion\space <\filedate> (tvz)}
  18. \@ifundefined{selectfont}
  19.   {\@seminarerr{`semlcmss' style option can only be used
  20.     with the New Font Selection Scheme}\@eha\endinput}{}
  21. %
  22. \expandafter\ifx\csname DeclareSizeFunction\endcsname\relax
  23.  
  24. % First, the font definitions:
  25. \new@fontshape{lcmss}{m}{n}{%
  26.   <5>lcmss8 scaled 695%
  27.   <6>lcmss8 scaled 833%
  28.   <7>lcmss8 scaled 913%
  29.   <8>lcmss8 %
  30.   <9>lcmss8 scaled 1095%
  31.   <10>lcmss8 scaled 1200%
  32.   <11>lcmss8 scaled 1314%
  33.   <12>lcmss8 scaled 1440%
  34.   <14>lcmss8 scaled 1727%
  35.   <17>lcmss8 scaled 2074%
  36.   <20>lcmss8 scaled 2488%
  37.   <25>lcmss8 scaled 2986%
  38.   }{}
  39. \extra@def{lcmss}{}{}
  40. %
  41. \new@fontshape{lcmss}{m}{it}{%
  42.   <5>lcmssi8 scaled 695%
  43.   <6>lcmssi8 scaled 833%
  44.   <7>lcmssi8 scaled 913%
  45.   <8>lcmssi8 %
  46.   <9>lcmssi8 scaled 1095%
  47.   <10>lcmssi8 scaled 1200%
  48.   <11>lcmssi8 scaled 1314%
  49.   <12>lcmssi8 scaled 1440%
  50.   <14>lcmssi8 scaled 1727%
  51.   <17>lcmssi8 scaled 2074%
  52.   <20>lcmssi8 scaled 2488%
  53.   <25>lcmssi8 scaled 2986%
  54.   }{}
  55. \extra@def{lcmss}{}{}
  56. \subst@fontshape{lcmss}{m}{sl}{lcmss}{m}{it}
  57. %
  58. \new@fontshape{lcmss}{bx}{n}{%
  59.   <5>lcmssb8 scaled 695%
  60.   <6>lcmssb8 scaled 833%
  61.   <7>lcmssb8 scaled 913%
  62.   <8>lcmssb8 %
  63.   <9>lcmssb8 scaled 1095%
  64.   <10>lcmssb8 scaled 1200%
  65.   <11>lcmssb8 scaled 1314%
  66.   <12>lcmssb8 scaled 1440%
  67.   <14>lcmssb8 scaled 1727%
  68.   <17>lcmssb8 scaled 2074%
  69.   <20>lcmssb8 scaled 2488%
  70.   <25>lcmssb8 scaled 2986%
  71.   }{}
  72. \extra@def{cmssb}{}{}
  73. \subst@fontshape{lcmss}{bx}{it}{lcmss}{bx}{n}
  74. \subst@fontshape{lcmss}{bx}{sl}{lcmss}{bx}{n}
  75.  
  76. %
  77. % Now define \slidefonts:
  78. \ifarticle
  79.   \def\slidefonts{%
  80.     \def\default@family{lcmss}%
  81.     \def\rmdefault{lcmss}%
  82.     \def\sfdefault{lcmss}%
  83.     \family\default@family\selectfont}
  84. \else
  85.     \def\default@family{lcmss}%
  86.     \def\rmdefault{lcmss}%
  87.     \def\sfdefault{lcmss}%
  88.     \family\default@family\selectfont
  89. \fi
  90.  
  91. \else
  92.  
  93. \DeclareFontFamily{OT1}{lcmss}{}{}
  94. \DeclareFontShape{OT1}{lcmss}{m}{n}{
  95.   <5>s*[1.1120]lcmss8
  96.   <6>s*[1.1107]lcmss8
  97.   <7>s*[1.0434]lcmss8
  98.   <8>lcmss8
  99.   <9>s*[0.9733]lcmss8
  100.   <10><10.95><12><14.4><17.28><20.74><24.88>s*[0.96]lcmss8}{}
  101.  
  102. \DeclareFontShape{OT1}{lcmss}{m}{sl}{
  103.   <5>s*[1.1120]lcmssi8
  104.   <6>s*[1.1107]lcmssi8
  105.   <7>s*[1.0434]lcmssi8
  106.   <8>lcmssi8
  107.   <9>s*[0.9733]lcmssi8
  108.   <10><10.95><12><14.4><17.28><20.74><24.88>s*[0.96]lcmssi8}{}
  109.  
  110. \DeclareFontShape{OT1}{lcmss}{bx}{n}{
  111.   <5>s*[1.1120]lcmssb8
  112.   <6>s*[1.1107]lcmssb8
  113.   <7>s*[1.0434]lcmssb8
  114.   <8>lcmssb8
  115.   <9>s*[0.9733]lcmssb8
  116.   <10><10.95><12><14.4><17.28><20.74><24.88>s*[0.96]lcmssb8}{}
  117.  
  118. \DeclareFontShape{OT1}{lcmss}{m}{it}{<-> ssub * lcmss/m/sl }{}
  119. \DeclareFontShape{OT1}{lcmss}{bx}{it}{<-> sub * lcmss/bx/n }{}
  120. \DeclareFontShape{OT1}{lcmss}{bx}{sl}{<-> sub * lcmss/bx/n }{}
  121.  
  122. % Now define \slidefonts:
  123. \ifarticle
  124.   \def\slidefonts{%
  125.     \def\default@family{lcmss}%
  126.     \def\rmdefault{lcmss}%
  127.     \def\sfdefault{lcmss}%
  128.     \fontfamily\default@family\selectfont}
  129. \else
  130.     \def\default@family{lcmss}%
  131.     \def\rmdefault{lcmss}%
  132.     \def\sfdefault{lcmss}%
  133.     \fontfamily\default@family\selectfont
  134. \fi
  135.  
  136. \fi
  137.  
  138. % Now set up a few things for seminar.sty:
  139. % These fonts are intended to be used with the 10pt font size
  140. % declarations (and \magstep4), slightly modified:
  141. \ptsize{10}\slidesmag{4}\articlemag{0}
  142. \@namedef{10@semptsize}{%
  143.   \def\@normalsize{\slide@@setsize\normalsize{12pt}\xpt\@xpt}%
  144.   \def\small{\footnotesize}%
  145.   \def\footnotesize{\slide@@setsize\footnotesize{9.5pt}\viiipt\@viiipt}%
  146.   \def\scriptsize{\footnotesize}%
  147.   \def\tiny{\slide@setsize\tiny{6pt}\vpt\@vpt}%
  148.   \def\large{\slide@setsize\large{14pt}\xiipt\@xiipt}%
  149.   \def\Large{\slide@setsize\Large{18pt}\xivpt\@xivpt}%
  150.   \def\LARGE{\slide@setsize\LARGE{22pt}\xviipt\@xviipt}%
  151.   \def\huge{\slide@setsize\huge{25pt}\xxpt\@xxpt}%
  152.   \def\Huge{\huge}}
  153. \def\semlcmss@warning#1{%
  154.   \@warning{Can't use `\string#1' with the semlcmss option!}}
  155. \def\ptsize#1{\semlcmss@warning\ptsize}
  156. \def\slidesmag#1{\semlcmss@warning\slidesmag}
  157. \def\articlemag#1{\semlcmss@warning\articlemag}
  158.  
  159. \endinput
  160. %% END semlcmss.sty
  161.